gskrendernodeimpl: Fix leak of cairo_pattern_t
authorDaniel Boles <dboles@src.gnome.org>
Thu, 3 Aug 2017 23:18:13 +0000 (00:18 +0100)
committerDaniel Boles <dboles@src.gnome.org>
Thu, 3 Aug 2017 23:59:33 +0000 (00:59 +0100)
It was not destroyed after setting it on the cairo_context_t, as it is
in every other case.

https://bugzilla.gnome.org/show_bug.cgi?id=785793

gsk/gskrendernodeimpl.c

index ae854bfbc7a4076386eb46a861353be336755200..996f270ea43fc86e54a34067ef266c1de3987fa1 100644 (file)
@@ -2558,6 +2558,7 @@ gsk_color_matrix_node_draw (GskRenderNode *node,
   cairo_paint (cr);
 
   cairo_restore (cr);
+  cairo_pattern_destroy (pattern);
 }
 
 #define GSK_COLOR_MATRIX_NODE_VARIANT_TYPE "(dddddddddddddddddddduv)"